<template>
  <div>
<button @click="add">+</button>
<input type="text" :value="$store.state.num">
<button @click="pdd">-</button>

  </div>
</template>

<script>
import { mapActions, mapMutations } from 'vuex'
export default {

  methods: {
    ...mapActions(['setValue','get_local','set_num']),
    add () {
      this.setValue(4)
    },
    pdd(){
      this.set_num(5)
    }
  },
  computed:{
  }
}
</script>

<style lang="scss" scoped>

</style>
